<link rel="stylesheet" href="../component/bootstrap/css/bootstrap-tagsinput.css">
<style>
    .user-content .layui-form-label {
        width: 16.66666667%;
    }

    .layui-dialog.user-form .layui-form-label {
        width: 135px;
    }

</style>
<div class="user-content">
    <form class="layui-form" lay-filter="searchUserForm">
        <div class="layui-form-item">
            <label class="layui-form-label">HY数量大于</label>
            <div class="layui-input-block layui-col-md3 no-margin-left">
                <input type="number" name="allCandy" placeholder="请输入HY数量" class="layui-input"
                       lay-filter="searchUserForm">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">今日火力值大于</label>
            <div class="layui-input-block layui-col-md3 no-margin-left">
                <input type="number" name="todayCandy" placeholder="请输入今日火力值" class="layui-input"
                       lay-filter="searchUserForm">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label ">邀请人数多于</label>
            <div class="layui-input-block layui-col-md3 no-margin-left">
                <input type="number" name="invitatNum" placeholder="请输入邀请人数" class="layui-input"
                       lay-filter="searchUserForm">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label "></label>
            <div class="layui-input-block layui-col-md8 no-margin-left">
                <!--<input type="checkbox" name="openId" title="有openid">-->
                <input type="checkbox" name="media" title="自媒体账号">
                <input type="checkbox" name="mediaType" title="平台自媒体账号">
                <!--<input type="checkbox" name="mobile" title="有手机号">-->
                <input class="layui-btn search" type="button" value="搜索" lay-submit lay-filter="searchUserForm"/>
            </div>

        </div>

    </form>
    <div class="user-table"></div>
</div>

<script type="text/html" id="userForm">
    <form class="layui-form padding-5 layui-dialog user-form">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名：</label>
            <div class="layui-input-block" style="line-height: 36px;">
                {{d.data.displayName||''}}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">自媒体账户：</label>
            <div class="layui-input-block">
                <input type="checkbox" name="media" {{# if(d.data.media=="01"){}}checked{{#}}} class="layui-input"
                       lay-filter="media">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">平台自媒体账户：</label>
            <div class="layui-input-block">
                <input type="checkbox" name="mediaType" {{# if(d.data.mediaType=="01"){}}checked{{#}}}
                       lay-filter="mediaType"
                       class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn save" style="width: 100px;" lay-submit lay-filter="{{d.model}}">保存</button>
            </div>
        </div>
        <input type="hidden" name="id" value="{{d.data.id||''}}"/>
    </form>
</script>
<script src="../component/bootstrap/js/bootstrap-tagsinput.min.js"></script>
<script type="text/javascript" src="../js/user.js"></script>